package pack0622;

public class f {
    public static void main(String[] args) {
        int num = 0;
        for (int i=1;i<4;i++){
            for (int j=1;j<4;j++){
                for (int l=1;l<4;l++){
                    if (i!=j && i!=l && j!=l){
                        num++;
                        System.out.print(i);
                        System.out.print(j);
                        System.out.println(l+" ");
                    }
                }

            }
        }
        System.out.println("共有"+num+"互不相同且无重复数字");
    }
}
